import BetterScroll from '@better-scroll/core';
let scroll: BetterScroll;

export function init(bscroll: BetterScroll) {
  scroll = bscroll;
  console.log('scrollView initialized: ', scroll);
}
export function scrollTo(...args: any) {
  scroll?.scrollTo.apply(scroll, args);
}
export function scrollToElement(...args: any) {
  scroll?.scrollToElement.apply(scroll, args);
}